package com.gla.giliair.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * m_order
 * @author 
 */
@ApiModel(value="com.gla.giliair.entity.MOrder订单表")
@Data
public class MOrder implements Serializable {
    /**
     * 订单id
     */
    @ApiModelProperty(value="订单id")
    private Long orderId;

    /**
     * 订单号
     */
    @ApiModelProperty(value="订单号")
    private String orderNumber;

    /**
     * 航班外键id
     */
    @ApiModelProperty(value="航班外键id")
    private Long flightId;

    /**
     * 航班号
     */
    @ApiModelProperty(value="航班号")
    private String flightNumber;

    /**
     * 出发城市
     */
    @ApiModelProperty(value="出发城市")
    private String leavePoint;

    /**
     * 到达城市
     */
    @ApiModelProperty(value="到达城市")
    private String arrivePoint;

    /**
     * 出发机场
     */
    @ApiModelProperty(value="出发机场")
    private String leaveAirport;

    /**
     * 到达机场
     */
    @ApiModelProperty(value="到达机场")
    private String arriveAirport;

    /**
     * 出发时间
     */
    @ApiModelProperty(value="出发时间")
    private Date leaveTime;

    /**
     * 到达时间
     */
    @ApiModelProperty(value="到达时间")
    private Date arriveTime;

    /**
     * 耗费时长
     */
    @ApiModelProperty(value="耗费时长")
    private String flightDuration;

    /**
     * 客户身份证号
     */
    @ApiModelProperty(value="客户身份证号")
    private String idNumber;

    /**
     * 客户真实姓名
     */
    @ApiModelProperty(value="客户真实姓名")
    private String realname;

    /**
     * 客户电话
     */
    @ApiModelProperty(value="客户电话")
    private String phone;

    /**
     * 客户生日
     */
    @ApiModelProperty(value="客户生日")
    private Date birthday;

    /**
     * 客户联系人姓名
     */
    @ApiModelProperty(value="客户联系人姓名")
    private String contacts;

    /**
     * 客户联系人电话
     */
    @ApiModelProperty(value="客户联系人电话")
    private String contactsPhone;

    /**
     * 航空公司外键id
     */
    @ApiModelProperty(value="航空公司外键id")
    private Long companyId;

    /**
     * 公司名
     */
    @ApiModelProperty(value="公司名")
    private String companyName;

    /**
     * 飞机机型外键id
     */
    @ApiModelProperty(value="飞机机型外键id")
    private Long planemodelId;

    /**
     * 飞机机型名称
     */
    @ApiModelProperty(value="飞机机型名称")
    private String planemodelName;

    /**
     * 座位外键id
     */
    @ApiModelProperty(value="座位外键id")
    private Long seatId;

    /**
     * 座位号
     */
    @ApiModelProperty(value="座位号")
    private String seatNumber;

    /**
     * 座位类型：0->经济舱；1->商务舱；2->头等舱
     */
    @ApiModelProperty(value="座位类型：0->经济舱；1->商务舱；2->头等舱")
    private Integer seatType;

    /**
     * 下单客户外键id
     */
    @ApiModelProperty(value="下单客户外键id")
    private Long customerId;

    /**
     * 订单折扣类型1：0->成人票；1->儿童票
     */
    @ApiModelProperty(value="订单折扣类型1：0->成人票；1->儿童票")
    private Integer discountType1;

    /**
     * 订单折扣类型2：0->普通客户；1->银牌客户；2->金牌客户
     */
    @ApiModelProperty(value="订单折扣类型2：0->普通客户；1->银牌客户；2->金牌客户")
    private Integer discountType2;

    /**
     * 订单原始价格
     */
    @ApiModelProperty(value="订单原始价格")
    private BigDecimal originalPrice;

    /**
     * 订单实际价格
     */
    @ApiModelProperty(value="订单实际价格")
    private BigDecimal price;

    /**
     * 支付方式：0->未支付；1->支付宝；2->微信；3->余额支付
     */
    @ApiModelProperty(value="支付方式：0->未支付；1->支付宝；2->微信；3->余额支付")
    private Integer paymentType;

    /**
     * 订单状态：0->待付款；1->已付款，未选座；2->已选座；3->已出票；-1->用户取消；-2->用户退票；-3->管理员关闭；-4->超时系统自动取消；-5->用户申请退票
     */
    @ApiModelProperty(value="订单状态：0->待付款；1->已付款，未选座；2->已选座；3->已出票；-1->用户取消；-2->用户退票；-3->管理员关闭；-4->超时系统自动取消；-5->用户申请退票")
    private Integer orderState;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private Date updateTime;

    /**
     * 是否被删除：0->否；1->是
     */
    @ApiModelProperty(value="是否被删除：0->否；1->是")
    private Integer isDeleted;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MOrder other = (MOrder) that;
        return (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getOrderNumber() == null ? other.getOrderNumber() == null : this.getOrderNumber().equals(other.getOrderNumber()))
            && (this.getFlightId() == null ? other.getFlightId() == null : this.getFlightId().equals(other.getFlightId()))
            && (this.getFlightNumber() == null ? other.getFlightNumber() == null : this.getFlightNumber().equals(other.getFlightNumber()))
            && (this.getLeavePoint() == null ? other.getLeavePoint() == null : this.getLeavePoint().equals(other.getLeavePoint()))
            && (this.getArrivePoint() == null ? other.getArrivePoint() == null : this.getArrivePoint().equals(other.getArrivePoint()))
            && (this.getLeaveAirport() == null ? other.getLeaveAirport() == null : this.getLeaveAirport().equals(other.getLeaveAirport()))
            && (this.getArriveAirport() == null ? other.getArriveAirport() == null : this.getArriveAirport().equals(other.getArriveAirport()))
            && (this.getLeaveTime() == null ? other.getLeaveTime() == null : this.getLeaveTime().equals(other.getLeaveTime()))
            && (this.getArriveTime() == null ? other.getArriveTime() == null : this.getArriveTime().equals(other.getArriveTime()))
            && (this.getFlightDuration() == null ? other.getFlightDuration() == null : this.getFlightDuration().equals(other.getFlightDuration()))
            && (this.getIdNumber() == null ? other.getIdNumber() == null : this.getIdNumber().equals(other.getIdNumber()))
            && (this.getRealname() == null ? other.getRealname() == null : this.getRealname().equals(other.getRealname()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
            && (this.getContacts() == null ? other.getContacts() == null : this.getContacts().equals(other.getContacts()))
            && (this.getContactsPhone() == null ? other.getContactsPhone() == null : this.getContactsPhone().equals(other.getContactsPhone()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
            && (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName().equals(other.getCompanyName()))
            && (this.getPlanemodelId() == null ? other.getPlanemodelId() == null : this.getPlanemodelId().equals(other.getPlanemodelId()))
            && (this.getPlanemodelName() == null ? other.getPlanemodelName() == null : this.getPlanemodelName().equals(other.getPlanemodelName()))
            && (this.getSeatId() == null ? other.getSeatId() == null : this.getSeatId().equals(other.getSeatId()))
            && (this.getSeatNumber() == null ? other.getSeatNumber() == null : this.getSeatNumber().equals(other.getSeatNumber()))
            && (this.getSeatType() == null ? other.getSeatType() == null : this.getSeatType().equals(other.getSeatType()))
            && (this.getCustomerId() == null ? other.getCustomerId() == null : this.getCustomerId().equals(other.getCustomerId()))
            && (this.getDiscountType1() == null ? other.getDiscountType1() == null : this.getDiscountType1().equals(other.getDiscountType1()))
            && (this.getDiscountType2() == null ? other.getDiscountType2() == null : this.getDiscountType2().equals(other.getDiscountType2()))
            && (this.getOriginalPrice() == null ? other.getOriginalPrice() == null : this.getOriginalPrice().equals(other.getOriginalPrice()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getPaymentType() == null ? other.getPaymentType() == null : this.getPaymentType().equals(other.getPaymentType()))
            && (this.getOrderState() == null ? other.getOrderState() == null : this.getOrderState().equals(other.getOrderState()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getOrderNumber() == null) ? 0 : getOrderNumber().hashCode());
        result = prime * result + ((getFlightId() == null) ? 0 : getFlightId().hashCode());
        result = prime * result + ((getFlightNumber() == null) ? 0 : getFlightNumber().hashCode());
        result = prime * result + ((getLeavePoint() == null) ? 0 : getLeavePoint().hashCode());
        result = prime * result + ((getArrivePoint() == null) ? 0 : getArrivePoint().hashCode());
        result = prime * result + ((getLeaveAirport() == null) ? 0 : getLeaveAirport().hashCode());
        result = prime * result + ((getArriveAirport() == null) ? 0 : getArriveAirport().hashCode());
        result = prime * result + ((getLeaveTime() == null) ? 0 : getLeaveTime().hashCode());
        result = prime * result + ((getArriveTime() == null) ? 0 : getArriveTime().hashCode());
        result = prime * result + ((getFlightDuration() == null) ? 0 : getFlightDuration().hashCode());
        result = prime * result + ((getIdNumber() == null) ? 0 : getIdNumber().hashCode());
        result = prime * result + ((getRealname() == null) ? 0 : getRealname().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
        result = prime * result + ((getContacts() == null) ? 0 : getContacts().hashCode());
        result = prime * result + ((getContactsPhone() == null) ? 0 : getContactsPhone().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
        result = prime * result + ((getPlanemodelId() == null) ? 0 : getPlanemodelId().hashCode());
        result = prime * result + ((getPlanemodelName() == null) ? 0 : getPlanemodelName().hashCode());
        result = prime * result + ((getSeatId() == null) ? 0 : getSeatId().hashCode());
        result = prime * result + ((getSeatNumber() == null) ? 0 : getSeatNumber().hashCode());
        result = prime * result + ((getSeatType() == null) ? 0 : getSeatType().hashCode());
        result = prime * result + ((getCustomerId() == null) ? 0 : getCustomerId().hashCode());
        result = prime * result + ((getDiscountType1() == null) ? 0 : getDiscountType1().hashCode());
        result = prime * result + ((getDiscountType2() == null) ? 0 : getDiscountType2().hashCode());
        result = prime * result + ((getOriginalPrice() == null) ? 0 : getOriginalPrice().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getPaymentType() == null) ? 0 : getPaymentType().hashCode());
        result = prime * result + ((getOrderState() == null) ? 0 : getOrderState().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderId=").append(orderId);
        sb.append(", orderNumber=").append(orderNumber);
        sb.append(", flightId=").append(flightId);
        sb.append(", flightNumber=").append(flightNumber);
        sb.append(", leavePoint=").append(leavePoint);
        sb.append(", arrivePoint=").append(arrivePoint);
        sb.append(", leaveAirport=").append(leaveAirport);
        sb.append(", arriveAirport=").append(arriveAirport);
        sb.append(", leaveTime=").append(leaveTime);
        sb.append(", arriveTime=").append(arriveTime);
        sb.append(", flightDuration=").append(flightDuration);
        sb.append(", idNumber=").append(idNumber);
        sb.append(", realname=").append(realname);
        sb.append(", phone=").append(phone);
        sb.append(", birthday=").append(birthday);
        sb.append(", contacts=").append(contacts);
        sb.append(", contactsPhone=").append(contactsPhone);
        sb.append(", companyId=").append(companyId);
        sb.append(", companyName=").append(companyName);
        sb.append(", planemodelId=").append(planemodelId);
        sb.append(", planemodelName=").append(planemodelName);
        sb.append(", seatId=").append(seatId);
        sb.append(", seatNumber=").append(seatNumber);
        sb.append(", seatType=").append(seatType);
        sb.append(", customerId=").append(customerId);
        sb.append(", discountType1=").append(discountType1);
        sb.append(", discountType2=").append(discountType2);
        sb.append(", originalPrice=").append(originalPrice);
        sb.append(", price=").append(price);
        sb.append(", paymentType=").append(paymentType);
        sb.append(", orderState=").append(orderState);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}